package com.happycat.social.enums;

/**
 * 性别enum, 可用于存数据库，加索引加快搜索速度
 * @Author shenbin
 * @CreatedDate 2020-08-20
 * @Modified By:
 */
public enum GenderEnum {
    MAN(1), WOMAN(0), UnKnown(2);

    public int gender;

    GenderEnum(int gender){
        this.gender = gender;
    }

    public int getGender() {
        return gender;
    }

//    public static boolean contains(int gender) {
//        for (GenderEnum typeEnum : GenderEnum.values()) {
//            if (typeEnum.getGender() == gender) {
//                return true;
//            }
//        }
//        return false;
//    }

}
